好的，我会在你提供的通知管理页面代码基础上添加批量删除和分页的功能，并且确保所有代码完整，可以直接复制粘贴使用。以下是完整的代码：

```html
<template>
  <el-card class="page-container">
    <template #header>
      <div class="header">
        <span>通知</span>
        <el-input 
          v-model="searchQuery" 
          placeholder="搜索相关通知..." 
          style="width: 200px; margin-right: 10px;" 
        />
        <div class="extra">
          <el-button @click="clearForm" type="primary">添加通知</el-button>
          <el-button 
            :disabled="selectedNotices.length === 0" 
            @click="deleteSelectedNotices" 
            type="danger">
            批量删除
          </el-button>
        </div>
      </div>
    </template>

    <!-- 添加通知弹窗 -->
    <el-dialog v-model="dialogVisible" :title="title" width="30%">
      <el-form :model="noticeModel" :rules="rules" label-width="100px" style="padding-right: 30px">
        <el-form-item label="通知标题" prop="title">
          <el-input v-model="noticeModel.title" minlength="1" maxlength="10"></el-input>
        </el-form-item>
        <el-form-item label="通知内容" prop="info">
          <el-input type="textarea" v-model="noticeModel.info" :rows="4" minlength="2" maxlength="500"></el-input>
        </el-form-item>
      </el-form>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="dialogVisible = false">取消</el-button>
          <el-button type="primary" @click="title === '添加通知' ? addNotice() : editNotice()">
            确认
          </el-button>
        </span>
      </template>
    </el-dialog>

    <!-- 列表 -->
    <el-table :data="paginatedNotices" style="width: 100%" @selection-change="handleSelectionChange">
      <el-table-column type="selection"></el-table-column>
      <el-table-column label="序号" width="100" type="index"> </el-table-column>
      <el-table-column label="标题" prop="title"></el-table-column>
      <el-table-column label="内容" prop="info"></el-table-column>
      <el-table-column label="操作" width="100">
        <template #default="{ row }">
          <el-button :icon="Edit" circle plain type="primary" @click="showNotice(row)"></el-button>
          <el-button :icon="Delete" circle plain type="danger" @click="deleteNotice(row)"></el-button>
        </template>
      </el-table-column>
      <template #empty>
        <el-empty description="没有数据" />
      </template>
    </el-table>

    <!-- 分页 -->
    <el-pagination
      background
      :current-page="currentPage"
      :page-size="pageSize"
      @current-change="handlePageChange"
      :total="filteredNotices.length"
      style="margin-top: 20px;">
    </el-pagination>
  </el-card>
</template>

<script setup>
import { Edit, Delete } from '@element-plus/icons-vue';
import { ref, computed } from 'vue';
import { ElMessage, ElMessageBox } from 'element-plus';
import {
  getNoticeService,
  addNoticeService,
  updateService,
  deleteService,
} from '../../api/notice';

const searchQuery = ref(''); // 新增的搜索条件

const notices = ref([]);
const selectedNotices = ref([]);
const currentPage = ref(1);
const pageSize = ref(10); // 每页显示的通知数

// 弹框标题
const title = ref('');
const dialogVisible = ref(false);

// 通知表单模型
const noticeModel = ref({
  title: '',
  info: '',
  id: 0,
});

// 添加通知表单校验
const rules = {
  title: [
    { required: true, message: '请输入通知标题', trigger: 'blur' },
    { min: 1, max: 10, message: '长度在 1 到 10 个字符', trigger: 'blur' }
  ],
  info: [
    { required: true, message: '请输入通知内容', trigger: 'blur' },
    { min: 2, max: 500, message: '长度在 2 到 500 个字符', trigger: 'blur' }
  ],
};

// 显示通知列表信息
const noticeList = async () => {
  let res = await getNoticeService();
  notices.value = res.data;
};

// 计算筛选后的通知数据
const filteredNotices = computed(() => {
  return notices.value.filter(notice =>
    notice.title.includes(searchQuery.value) ||
    notice.info.includes(searchQuery.value)
  );
});

// 计算分页后的通知数据
const paginatedNotices = computed(() => {
  const start = (currentPage.value - 1) * pageSize.value;
  return filteredNotices.value.slice(start, start + pageSize.value);
});

// 处理选择变化的方法
const handleSelectionChange = (selection) => {
  selectedNotices.value = selection;
};

// 批量删除选中的通知
const deleteSelectedNotices = async () => {
  if (selectedNotices.value.length === 0) {
    ElMessage.warning('请选择要删除的通知');
    return;
  }
  ElMessageBox.confirm('您确定要删除这些通知吗?', '注意', {
    confirmButtonText: '确定',
    cancelButtonText: '取消',
    type: 'warning',
  })
  .then(async () => {
    for (const notice of selectedNotices.value) {
      await deleteService(notice.id);
    }
    selectedNotices.value = []; // 清空选择
    noticeList(); // 刷新通知列表
    ElMessage.success('删除成功');
  })
  .catch(() => {
    ElMessage({
      type: 'info',
      message: '删除已取消',
    });
  });
};

// 页码改变事件
const handlePageChange = (page) => {
  currentPage.value = page;
};

// 添加通知弹窗
const addNotice = async () => {
  let res = await addNoticeService(noticeModel.value);
  if (res) {
    ElMessage.success(res.message ? res.message : '添加成功');
    noticeList();
    dialogVisible.value = false;
  } else {
    ElMessage.error(res.message ? res.message : '很可惜，添加失败了');
  }
};

// 修改是弹窗展示编辑原信息
const showNotice = (row) => {
  dialogVisible.value = true;
  title.value = '修改通知';
  noticeModel.value.title = row.title;
  noticeModel.value.info = row.info;
  noticeModel.value.id = row.id;
};

// 编辑通知
const editNotice = async () => {
  let res = await updateService(noticeModel.value);
  ElMessage.success(res.message ? res.message : '修改成功!');
  noticeList();
  dialogVisible.value = false;
};

// 添加时清空表单数据
const clearForm = () => {
  dialogVisible.value = true;
  title.value = '添加通知';
  noticeModel.value.title = '';
  noticeModel.value.info = '';
};

// 删除通知
const deleteNotice = async (row) => {
  ElMessageBox.confirm('您确定要删除这个通知吗', '注意', {
    confirmButtonText: '确定',
    cancelButtonText: '取消',
    type: 'warning',
  })
  .then(async () => {
    let res = await deleteService(row.id);
    noticeList();
    dialogVisible.value = false;
    ElMessage({
      type: 'success',
      message: res.message ? res.message : '删除成功',
    });
  })
  .catch(() => {
    ElMessage({
      type: 'info',
      message: '删除已取消',
    });
  });
};

// 初始化通知列表
noticeList();
</script>

<style lang="scss" scoped>
.page-container {
  min-height: 100%;
  box-sizing: border-box;

  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}
</style>
